package com.itcast.feign.clients;

import com.itcast.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 尚智江
 * @description
 * @CreateDate 2023/10/17 23:26
 */
@FeignClient("userserver" )
public interface UserClients {

    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);
}
